#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using std::cout;
using std::endl;

void print(int& a) {
	cout << a << endl;
}

int& arr(int& x) {
	x = 11;
	return x;
}

int main() {
	int x = 10;
	int& a = arr(x);
	cout << a << endl;
	print(a);

	print(a);
	return 0;
}